interface Store {
  dispatch: Function
  getState: Function
}

export const reduxLog = (store: Store) => (next: Function) => (action: any) => {
  console.log('before: ', store.getState(), 'action: ', action)
  next(action)
  console.log('after: ', store.getState(), 'action: ', action)
}